package com.xiaoxi.flyweightmode;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi.flyweightmode
 * @ClassName Main
 * @Description TODO
 * @Date 2023/4/6 21:22
 * @Version 1.0
 */
public class Main {
    public static void main(String[] args) {

        BigString bigString = new BigString("1234567");
        bigString.print();
        bigString.printMemory();

        BigString bigString2 = new BigString("1234567", false);
        bigString2.print();
        bigString2.printMemory();
    }
}
